﻿using Microsoft.Extensions.Configuration;
using System;

namespace Loong.Configuration
{
    public static class DbConfigurationExtensions
    {
        public static IConfigurationBuilder AddDbConfiguration(this IConfigurationBuilder builder, Action<DbConfigurationOptionsBuilder> action)
        {
            return builder.Add(new DbConfigurationSource(action));
        }
    }
}
